package com.sws.weixin.entity;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;


import java.util.Map;


public class TemplateSendDTO {
    @NotBlank(message = "接收用户不能为空")
    private String touser;

    @NotBlank(message = "模板ID不能为空")
    private String templateId;

    @NotNull(message = "模板数据不能为空")
    private Map<String, Object> data;

    // Getters and Setters

    public String getTouser() {
        return touser;
    }

    public void setTouser(String touser) {
        this.touser = touser;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "TemplateSendDTO{" +
                "touser='" + touser + '\'' +
                ", templateId='" + templateId + '\'' +
                ", data=" + data +
                '}';
    }
}
